<template>
  <div>
    <div class="wrapper">
      <div class="container">
        <img src="../../assets/wenzhou-logo.png" class="logo" @click="logoClick" />
        <span>我的消息</span>
        <span>
          <i class="el-icon-edit"></i>我的订单
        </span>
        <span class="register-btn" @click="doRigister">注册</span>
        <span class="login-btn" @click="doLogin">登录</span>
        <span class="hello-message">中午好</span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {

    };
  },
  methods: {
    logoClick () {
      this.$router.push("/");
    },
    doLogin () {
      this.$router.push("/login");
    },
    doRigister () {
      this.$router.push("/rigister");
    }
  }
};
</script>
<style lang="stylus" scoped>
@import '~@/assets/style/nav-header-var.styl';

.wrapper {
  height: $navHeight;
  background-color: $navBgColor;

  .container {
    height: 100%;
    width: $navContainerWidth;
    margin: 0 auto;

    .logo {
      height: $logoHeight;
      cursor: pointer;
    }

    span {
      float: right;
      display: block;
      line-height: $navInfoLineHeight;
      padding-right: 15px;
      cursor: pointer;

      &:hover {
        color: #eee;
      }

      &.hello-message {
        cursor: default;
        color: black;
      }

      &.login-btn {
        color: #f56c6c;
      }

      &.login-btn:hover {
        color: #eee;
      }

      &.register-btn {
        color: #e6a23c;
      }

      &.register-btn:hover {
        color: #eee;
      }
    }
  }
}
</style>
